package com.lingz.manager.modules.camera.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.lingz.manager.base.DevplatBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author hanyuhang
 */
@Data
@TableName("equipment")
@ApiModel(value = "相机设备列表")
public class Equipment implements Serializable {

    private String id;

    @ApiModelProperty("设备序列号")
    private String equSerial;

    @ApiModelProperty("设备验证码")
    private String equEncoderContent;

    @ApiModelProperty("设备型号")
    private String type;

    @ApiModelProperty("相机列表")
    @TableField(exist = false)
    @Transient
    private List<Map> cameras;

    @ApiModelProperty("相机序列号")
    private String camSerial;

    @ApiModelProperty("相机验证码")
    private String camEncoderContent;

    @ApiModelProperty(name = "设备名称")
    private String name;

    @ApiModelProperty("ip")
    private String ip;

}